$OpenBSD: patch-src_security_default_c,v 1.1 2017/03/28 17:02:01 jasper Exp $

Fix build with LibreSSL, from gentoo-overlay
https://github.com/stintel/gentoo-overlay/tree/master/app-misc/mosquitto/files

--- src/security_default.c.orig	Sat Mar 18 14:38:01 2017
+++ src/security_default.c	Sat Mar 18 14:38:21 2017
@@ -770,7 +770,7 @@ int mosquitto_psk_key_get_default(struct mosquitto_db 
 int _pw_digest(const char *password, const unsigned char *salt, unsigned int salt_len, unsigned char *hash, unsigned int *hash_len)
 {
 	const EVP_MD *digest;
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#ifndef HAVE_OPENSSL_OPAQUE_STRUCTS
 	EVP_MD_CTX context;
 
 	digest = EVP_get_digestbyname("sha512");
